// 通用响应格式
export interface ApiResponse<T> {
  success: boolean
  message: string
  code: number
  result: T
  timestamp: number
}

// 用户信息接口
export interface UserInfo {
  id: string
  username: string
  realname: string
  phone: string | null
  createBy: string | null
  createTime: string | null
  updateBy: string | null
  updateTime: string | null
}

// 登录请求参数
export interface LoginParams {
  username: string
  password: string
}

export interface DepartInfo {
  id: string,
  "parentId": "",
  "parentProjId": null,
  "cid": "63863df36d534ff5a3aec7ccd793070c",
  "jid": null,
  "gid": null,
  "payCode": "",
  "mchntId": null,
  "payKey": "",
  "vipPayCode": null,
  "posid": null,
  "branchid": null,
  "routerAddress": null,
  "startpay": 0,
  "startpayTime": null,
  "payChannel": 0,
  "isReport": 0,
  "etcType": 0,
  "sn": null,
  "etcCode": null,
  "cityPayId": "",
  "adcode": "100000",
  "departName": "黄涛测试",
  "departNamePy": "htcs",
  "departNameAbbr": null,
  "orgCategory": 1,
  "orgCode": null,
  "memo": "",
  "appId": "",
  "wxmonthurl": "",
  "vipPay": 0,
  "invoice": 0,
  "invoiceRate": null,
  "rate": null,
  "lat": null,
  "lng": null,
  "address": null,
  "uploadType": null,
  "uploadId": null,
  "logo": "null",
  "logoname": "",
  "subInsId": null,
  "authority": 0,
  "onlineRenewal": "01",
  "groupMonth": 1,
  "rodless": 0,
  "supplezb": 0,
  "nonVehicle": 0,
  "msgNum": 100,
  "status": 1,
  "delFlag": "0",
  "createBy": "admin",
  "createTime": "2023-12-14 10:09:50",
  "updateBy": "admin",
  "updateTime": "2024-08-19 11:39:56",
  "advertisement": "",
  "version": 0,
  "yearprice": 0.1,
  "yearpricemodel": 0,
  "expiration": null,
  "depBalance": 0,
  "dutyRemark": null,
  "chargeRemark": "",
  "separateAmt": 0,
  "parentList": null,
  "wxAppId": null,
  "wxAppSecret": null,
  "payCycle": null,
  "sparePayCode": null,
  "sparePayChannel": null,
  "sparePayKey": null,
  "isNon": 0,
  "vehicleId": null,
  "sourceCode": null,
  "sort": 0
}

export interface ParkInfo {
  "id": "1316657601882525697",
  "parentId": null,
  "alonebilling": "0",
  "surplusCountDev": 0,
  "createBy": "admin",
  "createTime": "2020-10-15 16:30:09",
  "updateBy": "admin",
  "updateTime": "2024-06-24 15:41:01",
  "depId": "4a003c40ad9345229917d06d21759595",
  "name": "新天地电脑城",
  "addition": 0,
  "numberSum": 65,
  "surplusType": 1,
  "numberMonth": 0,
  "numberTemp": 65,
  "surplusTemp": 13,
  "surplusMonth": 0,
  "blueFeesId": "1329696260382715906",
  "energyFeesId": "1329696260382715906",
  "yellowFeesId": "1329696260382715906",
  "chargeId": "",
  "seatFeesId": "",
  "monthToTemp": null,
  "stayTime": 10,
  "delFlag": "0",
  "monthCarMode": 4,
  "isFull": 59,
  "isSettle": 0
}

export interface ListResponse {
  size: number
  total: number
  searchCount: boolean
  pages: number
  records: ListItemResponse[]
  current: number
}

export interface ListItemResponse {
  "id": "string",
  "forbidTime": "2025-08-06T06:29:25.186Z",
  "expireTime": "2025-08-06T06:29:25.186Z",
  "bluetooth": "string",
  "depId": "string",
  "prohibitTime": "string",
  "prohibitType": 0,
  "parkName": "string",
  "departName": "string",
  "createBy": "string",
  "createTime": "2025-08-06T06:29:25.186Z",
  "updateBy": "string",
  "updateTime": "2025-08-06T06:29:25.186Z",
  "parkId": "string",
  "parentParkId": "string",
  "name": "string",
  "number": "string",
  "type": 0,
  "isRoadOpen": 0,
  "tollTime": 0,
  "tollMoney": 0,
  "allowTemp": 0,
  "accessRights": "string",
  "notAllowTempInfo": "string",
  "isVague": 0,
  "isIgnoreZh": 0,
  "matchLength": 0,
  "serialNumber": "string",
  "linkserialNumber": "string",
  "etcDevcode": "string",
  "auxiliarySerialNumber": "string",
  "samepro": 0,
  "balance": 0,
  "twopen": 0,
  "twoOpenLaneId": "string",
  "routerAddress": "string",
  "cdcameraType": 0,
  "cdSerialNumber": "string",
  "helpNum": "string",
  "tcpayNum": "string",
  "tcpayurl": "string",
  "cardId": "string",
  "isOpen": 0,
  "isClearCamera": 0,
  "firstText": "string",
  "text2": "string",
  "text3": "string",
  "senstate": 0,
  "unlicensed": 0,
  "unlicensedTime": "2025-08-06T06:29:25.186Z",
  "isAdmissionCode": 0,
  "isCashopen": 0,
  "isPayClosure": "string",
  "tempLaneid": "string",
  "tempOuttime": 0,
  "scanRtn": "string",
  "carNum": "string",
  "cameraIp": "string",
  "cameraType": 0,
  "outBroadcastMode": 0,
  "videoUrl": "string",
  "prompt": "string",
  "isActive": 0 // 是否 常开
}